#include "field_player.h"

Fieldplayer::Fieldplayer(string teamName) : Player(teamName)
{ 
    ss.str("");
    ss<<"(init "<<teamName <<")\n";
    sock << ss.str();
    ss.str(string());
    string response;
    sock >> response;
    sock.setReceiverAdress();
}

void Fieldplayer::handle_state()
{
    parser.field=field;
    shippingbox.str("");

    Player::get_status();
    shippingbox << cont.select_state(parser,id, _configpath);
    // cout <<field<<endl;
    sock<<shippingbox.str();
}

